<?php

namespace Modules\H5\Http\Controllers\Configuration;

use Modules\Common\Models\Configurations;
use Modules\Common\Util\Api;
use Modules\Common\Util\Database;

class Configuration
{
    /**
     * 获取配置列表
     * @Route(path=/api/get-configuration)
     */
    public function configuration()
    {
        $eid = request('eid');
        $name = request('name');
        $query = Configurations::where('name', $name)->where('is_enabled', 1)->where('eid',$eid);
        $configuration= $query->first();
        return Api::success($configuration);
    }

}